package com.ruoyi.my.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.my.mapper.SignInMapper;
import com.ruoyi.my.domain.SignIn;
import com.ruoyi.my.service.ISignInService;

/**
 * signService业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-24
 */
@Service
public class SignInServiceImpl implements ISignInService 
{
    @Autowired
    private SignInMapper signInMapper;

    /**
     * 查询sign
     * 
     * @param id sign主键
     * @return sign
     */
    @Override
    public SignIn selectSignInById(Long id)
    {
        return signInMapper.selectSignInById(id);
    }

    /**
     * 查询sign列表
     * 
     * @param signIn sign
     * @return sign
     */
    @Override
    public List<SignIn> selectSignInList(SignIn signIn)
    {
        return signInMapper.selectSignInList(signIn);
    }

    /**
     * 新增sign
     * 
     * @param signIn sign
     * @return 结果
     */
    @Override
    public int insertSignIn(SignIn signIn)
    {
        signIn.setCreateTime(DateUtils.getNowDate());
        return signInMapper.insertSignIn(signIn);
    }

    /**
     * 修改sign
     * 
     * @param signIn sign
     * @return 结果
     */
    @Override
    public int updateSignIn(SignIn signIn)
    {
        signIn.setUpdateTime(DateUtils.getNowDate());
        return signInMapper.updateSignIn(signIn);
    }

    /**
     * 批量删除sign
     * 
     * @param ids 需要删除的sign主键
     * @return 结果
     */
    @Override
    public int deleteSignInByIds(Long[] ids)
    {
        return signInMapper.deleteSignInByIds(ids);
    }

    /**
     * 删除sign信息
     * 
     * @param id sign主键
     * @return 结果
     */
    @Override
    public int deleteSignInById(Long id)
    {
        return signInMapper.deleteSignInById(id);
    }
}
